﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Blog.Model
{
    /// <summary>
    /// 分页信息类
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class PageModel<T>
    {
        /// <summary>
        /// 页索引
        /// </summary>
        public int PageIndex { get; set; } = 1;
        /// <summary>
        /// 页大小
        /// </summary>
        public int PageSize { get; set; } = 10;
        /// <summary>
        /// 数据总数
        /// </summary>
        public int TotalItem { get; set; }
        /// <summary>
        /// 分页总数
        /// </summary>
        public int TotalPage { get; set; }
        /// <summary>
        /// 当前页返回数据
        /// </summary>
        public List<T> Data { get; set; }
    }
}
